From 0a330b99ed97a43da706988858c538af112e66e8 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 13 Jul 2007 13:46:49 +0100 Subject: [PATCH] Do not clobber AMD TSC offset on real-mode switch. Signed-off-by: David Lively Signed-off-by: Ben Guthro --- xen/arch/x86/hvm/svm/svm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 2b75b1fd45..d1fca8d1dc 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -2328,9 +2328,6 @@ static int svm_reset_to_realmode(struct vcpu *v, /* clear the vmcb and user regs */ memset(regs, 0, sizeof(struct cpu_user_regs)); - /* VMCB Control */ - vmcb->tsc_offset = 0; - /* VMCB State */ vmcb->cr0 = X86_CR0_ET | X86_CR0_PG | X86_CR0_WP; v->arch.hvm_svm.cpu_shadow_cr0 = X86_CR0_ET; -- 2.30.2